<?php

class Ext_Tag_Show
{
    public $url;
    public $name;
    
    public function __construct($tagId)
    {
        $this->_build($tagId);
    }
    
    private function _build($tagId)
    {
        $tagOne = App_Model_DbTable_Tags::getInstance()->getRowById($tagId);
        if(!$tagOne){
            return "";
        }
        
        $this->url  = Ext_Url::getInstance()->tag($tagId)->articleList;
        $this->name = $tagOne['tagName'];
        
    }
}
